import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SharedModule } from '@shared/shared.module';

import { RandomUserService } from './randomUser.service';
import {UserComponent} from './user.component';

const routes: Routes = [
    { path: '', component: UserComponent }
];

@NgModule({
    imports: [
        SharedModule,
        RouterModule.forChild(routes)
    ],
    providers: [ RandomUserService ],
    declarations: [
UserComponent
],
exports: [
    RouterModule
],
    entryComponents: [

]
})
export class UserModule { }
